Skip to content

Feature/ccm 14778 fix e2 e tests#534

Open
stevebux wants to merge 2 commits intomainfrom
feature/CCM-14778-Fix-E2E-Tests
Open

Feature/ccm 14778 fix e2 e tests#534
stevebux wants to merge 2 commits intomainfrom
feature/CCM-14778-Fix-E2E-Tests

Conversation

@stevebux
Copy link
Copy Markdown
Contributor

Description

Context

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

DT3-Specific Checklist

  • If I have added a new resource (SQS, Lambda, Gateway, DDB table, etc), I have created the appropriate alarms

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@stevebux stevebux requested a review from a team as a code owner April 14, 2026 12:47
@stevebux stevebux added the deploy-proxy Set to 'true' to force a PR build to deploy the APIM proxy label Apr 14, 2026
@stevebux stevebux requested a review from a team as a code owner April 14, 2026 12:47
@stevebux stevebux force-pushed the feature/CCM-14778-Fix-E2E-Tests branch 4 times, most recently from 2487732 to 7d97b6c Compare April 17, 2026 12:32
@stevebux stevebux requested a review from Copilot April 17, 2026 13:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s end-to-end testing and CI wiring to make the e2e suite more reliable by (a) seeding letters via the shared letter-test-data utility and (b) supporting API-key auth for PR proxies and the /_status endpoint.

Changes:

  • Add Python e2e helpers to seed PENDING letters via the shared Node CLI and to poll until letters are visible.
  • Update e2e auth/header generation to support both bearer tokens and API-key auth (status + PR proxies).
  • Restructure GitHub Actions acceptance testing to include an e2e test type and add support for passing extra secrets to internal workflow dispatches.

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tests/e2e-tests/lib/secret.py Extend Secret to carry an auth_type for header generation.
tests/e2e-tests/lib/letters.py New helper to create letter test data via CLI and fetch pending IDs with retry.
tests/e2e-tests/lib/generators.py Update header generation to support API-key vs bearer auth.
tests/e2e-tests/lib/fixtures.py Replace bearer-token fixture with auth “secret” fixtures for /letters and /_status.
tests/e2e-tests/lib/authentication.py Support API-key auth for /_status and PR proxies; path-based auth selection.
tests/e2e-tests/api/test_endpoint.py Update endpoint smoke tests to use new fixtures/header generation.
tests/e2e-tests/api/letters/test_update_letter_status.py Seed/poll for PENDING letters before updating status.
tests/e2e-tests/api/letters/test_multiple_letter_status.py Seed/poll for multiple letters before batch status updates.
tests/e2e-tests/api/letters/test_get_list_of_letters.py Switch to helper that ensures at least one letter is available.
tests/e2e-tests/api/letters/test_get_letter_status.py Switch to helper to obtain a valid letter ID before GET-by-id.
tests/e2e-tests/api/letters/conftest.py New autouse session fixture to seed letters for this test directory.
tests/e2e-tests/api/headers/test_x_request_id.py Update fixtures used for auth in X-Request-ID tests.
tests/e2e-tests/api/data/test_get_letter_data.py Switch to helper to obtain a valid letter ID before fetching letter data.
tests/e2e-tests/README.md Update local e2e setup docs (proxy name + API keys).
tests/constants/api-constants.ts Use TARGET_ENVIRONMENT instead of PR_NUMBER for environment naming.
Makefile Pass STATUS_ENDPOINT_API_KEY into the pytest invocation environment.
.gitleaksignore Add ignore entries for detected IP-like strings in built SAM artefacts.
.github/workflows/stage-4-acceptance.yaml Pass extra secret names to internal workflow dispatch.
.github/workflows/stage-3-build.yaml Split OAS spec artefact jobs (main vs PR) and adjust job dependencies/conditions.
.github/scripts/dispatch_internal_repo_workflow.sh Add --extraSecretNames support for dispatch payload construction.
.github/actions/test-types.json Add e2e to the allowed acceptance test types.
.github/actions/e2e-tests/action.yml Remove legacy composite action for e2e tests.
.github/actions/acceptance-tests/action.yml Route to component vs e2e acceptance sub-actions based on testType.
.github/actions/acceptance-tests-e2e/action.yml New composite action to run the Python e2e suite in CI.
.github/actions/acceptance-tests-component/action.yml New composite action encapsulating component acceptance test execution.
.env.template Add STATUS_ENDPOINT_API_KEY to local env template.

Comment thread tests/e2e-tests/api/headers/test_x_request_id.py
Comment thread .github/actions/acceptance-tests-e2e/action.yml
Comment thread .github/workflows/stage-3-build.yaml Outdated
Comment thread .github/scripts/dispatch_internal_repo_workflow.sh
Comment thread tests/e2e-tests/lib/generators.py
Comment thread tests/e2e-tests/lib/authentication.py
@stevebux stevebux force-pushed the feature/CCM-14778-Fix-E2E-Tests branch from 83c95f9 to 48052c5 Compare April 17, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deploy-proxy Set to 'true' to force a PR build to deploy the APIM proxy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants